<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use ZigaStrgar\Orderable\Orderable;
/**
 * App\BrowseRecords
 *
 * @mixin \Eloquent
 * @property int $id
 * @property int|null $user_id 用户id
 * @property string|null $type 浏览类的:0厂房1土地2写字楼
 * @property string|null $produce_id 产品id，即土地厂房写字楼的id
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BrowseRecords whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BrowseRecords whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BrowseRecords whereProduceId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BrowseRecords whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BrowseRecords whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BrowseRecords whereUserId($value)
 * @property string|null $user_name 用户名称
 * @property string|null $title 标题
 * @property string|null $logo 首图
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BrowseRecords whereLogo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BrowseRecords whereTitle($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BrowseRecords whereUserName($value)
 */
class BrowseRecords extends Model
{
    use Orderable;

    public function orderable(){
        return [
            //DESC,ASC
            //'id' => 'DESC',
            'created_at' => 'DESC',
            'id'
        ];
    }
    //
    protected $table = "browse_records";
    protected $fillable = ['user_id','user_name','type','produce_id','title','logo'];
}
